package lyo.levelup.person.persontest;
public class Employee extends Person{
    private final String hobby = "Football";
public Employee(String name, String lastName, double pay, int countWork, PersonType type)
{
    super(name, lastName, pay, countWork, type);
}
    public void getHobby()
    {
        System.out.println(super.getSurName()+" hobby is " + hobby);   
    }
}